package com.example.njupt.uis.mine;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.njupt.R;
import com.example.njupt.okhttp.entity.MineListEntity;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class MineListAdapter extends BaseQuickAdapter<MineListEntity, BaseViewHolder> {
    public MineListAdapter(@Nullable List<MineListEntity> data) {
        super(R.layout.item_mine_list, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder helper, MineListEntity item) {
        helper.setText(R.id.tv_string, item.getString());
    }
}
